package health

import (
	"account/server"
	"net/http"

	"github.com/gin-gonic/gin"
)

// 健康检查
// @Summary 服务健康检查
// @Description get server health status
// @Accept  json
// @Produce json
// @Success 200 {string} string "success"
// @Router /api/v1/account/health/check [get]
func HealthInfo(ctx *gin.Context) {

	var response *server.Response

	message := "account status OK"
	result := map[string]string{
		"serverName":  "account",
		"description": "账户管理服务",
		"status":      "OK",
		"info":        "服务状态正常",
	}
	response = server.NewResponse(http.StatusOK, message, result)
	ctx.JSON(http.StatusOK, response)
}
